
//
//
//  Created by lina on 11-11-15.
//  Copyright (c) 2011年 Sina. All rights reserved.

@class CustomTabBarController;

@protocol  CustomTabBarDelegate <NSObject>
@required
- (void)     selectedItemImagesForTabBar:(CustomTabBarController*) tabView buttons:(NSMutableArray*)tabButtons;
- (UIColor*) backgroundColorForTabBar:(CustomTabBarController*) tabView;
- (UIColor*) selectedTitleColor:(CustomTabBarController*)tabView;
- (UIColor*) normalTitleColor:(CustomTabBarController*)tabView;
- (void) customTabBarDidSelectItem;
@end

@interface CustomTabBarController : UITabBarController
{
#ifdef CustomTabBar
    NSMutableArray  * buttons;
	UIImageView     * slideBg;
	UIView          * cusTomTabBarView;
	UIImageView     * backGroundImageView;
    int               currentSelectedIndex;
#endif
}

// Create a view controller and setup it's tab bar item with a title and image
-(UIViewController*) viewControllerWithTabTitle:(NSString*)title image:(UIImage*)image;

// Create a custom UIButton and add it to the center of our tab bar
-(void) addCenterButtonWithImage:(UIImage*)buttonImage highlightImage:(UIImage*)highlightImage;

#ifdef CustomTabBar
- (void)hideRealTabBar;
- (void)customTabBar;
- (void)selectedTab:(UIButton *)button;

@property (nonatomic,assign) int                currentSelectedIndex;
@property (nonatomic,retain) NSMutableArray *   buttons;
@property (nonatomic,retain) UIView         *   cusTomTabBarView;
@property (nonatomic,assign) id<CustomTabBarDelegate> customTabBarDelegate;

#endif
@end


